<?php

class Helper_JMenu
{
    public $view;
    
    public function setView(Zend_View_Interface $view)
    {
        $this->view = $view;
    }

    function jMenu()
    {
        // initializing jMenu

        $this->view->headLink()->appendStylesheet('/css/jmenu.css');
        $this->view->headScript()->appendFile($this->view->baseUrl('js/jmenu/jmenu.js'));
    
        $this->view->headScript()->captureStart();
        echo "$(document).ready(function(){ $('ul.navigation').jmenu() });";
        $this->view->headScript()->captureEnd();
    }
}
